# GovernmentSanctioned/Makefile
# $Id$

LIB_DIR	= lib
SERVER_DIR = server
CLIENT_DIR = cli

MAKE = make
CC = gcc

SUBDIRS = $(LIB_DIR) $(SERVER_DIR) $(CLIENT_DIR)

lib:
	@cd $(LIB_DIR) && $(MAKE) all

server:
	@cd $(SERVER_DIR) && $(MAKE) all
	
cli:
	@cd $(CLIENT_DIR) && $(MAKE) all
	
	
all: 
	@echo
	@echo "##############################################"
	@echo "###          BUILDING ALL TARGETS          ###"
	@echo "##############################################"
	@echo
	for i in $(SUBDIRS) ; do \
	( cd $$i ; make ) ; \
	done
	
tree:
	@tree
	
	
docs:
	doxygen .doxygen

clean:
	for i in $(SUBDIRS) ; do \
	( cd $$i ; make clean ) ; \
	done
	

.PHONY: all clean lib server cli tree
